<{extends file="layout.html"}>
<{block name="content"}>
<div class="aw-container-wrap">
    <div class="container category">
        <div class="row">
            <div class="col-sm-12">
                <{foreach $cat_list as $k=>$v}>
                <dl>
                    <dt>
                        <img alt="默认分类" src="<{UPLOAD_PATH}>category/<{$v.cat_logo}>"></dt>
                    <dd>
                        <p class="title">
                            <a href="category.html"><{$v.cat_name}></a>
                        </p>
                        <span>默认分类描述</span>
                    </dd>
                </dl>
                <{/foreach}>
            </div>
        </div>
    </div>

    <div class="container">
        <div class="row">
            <div class="aw-content-wrap clearfix">
                <div class="col-sm-12 col-md-9 aw-main-content">
                    <!-- end 新消息通知 -->
                    <!-- tab切换 -->
                    <ul class="nav nav-tabs aw-nav-tabs active hidden-xs">
                        <li>
                            <a href="">等待回复</a>
                        </li>
                        <li>
                            <a id="sort_control_hot" href="">热门</a>
                        </li>
                        <li>
                            <a href="">推荐</a>
                        </li>
                        <li class="active">
                            <a href="">最新</a>
                        </li>

                        <h2 class="hidden-xs">
                            <i class="icon icon-list"></i>
                            发现
                        </h2>
                    </ul>
                    <!-- end tab切换 -->

                    <div class="aw-mod aw-explore-list">
                        <div class="mod-body">
                            <div class="aw-common-list">
                                <{foreach $questions as $k=>$v}>
                                <div data-topic-id="2," class="aw-item active">
                                    <a rel="nofollow" href="people.html" data-id="1" class="aw-user-name hidden-xs">
                                        <img alt="" src="<{PUBLIC_HOME}>common/avatar-max-img.png"></a>
                                    <div class="aw-question-content">
                                        <h4>
                                            <a href="question.html"><{$v.question_title}></a>
                                        </h4>
                                        <a class="pull-right text-color-999" href="answer.html">回复</a>

                                        <p>
                                            <a href="category.html" class="aw-question-tags"><{$v.cat_name}></a>
                                            •
                                            <a class="aw-user-name" href="people.html">itbull</a>
                                            <span class="text-color-999">
                                                发起了问题 • <{$v.focus_count|default:1}> 人关注 •
                                                <{$v.replay_count|default:1}> 个回复 •
                                                <{$v.view_count|default:1}> 次浏览 •
                                                <{$v.pub_time|date_format:"%Y-%m-%d"}>
                                            </span>
                                            <span class="text-color-999 related-topic hide">• 来自相关话题</span>
                                        </p>

                                    </div>
                                </div>
                                <{/foreach}>
                            </div>
                        </div>
                        <div class="mod-footer">
                            <div class="page-control">
                                <{$page_html}>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 侧边栏 -->
                <div class="col-sm-12 col-md-3 aw-side-bar hidden-xs hidden-sm">
                    <div class="aw-mod aw-text-align-justify">
                        <div class="mod-head">
                            <a class="pull-right" href="topic_index.html">更多 &gt;</a>
                            <h3>热门话题</h3>
                        </div>
                        <div class="mod-body">
                            <dl>
                                <dt class="pull-left aw-border-radius-5">
                                    <a href="topic.html">
                                        <img src="<{PUBLIC_HOME}>common/topic-mid-img.png" alt=""></a>
                                </dt>
                                <dd class="pull-left">
                                    <p class="clearfix">
										<span class="topic-tag">
											<a data-id="2" class="text" href="topic.html">php</a>
										</span>
                                    </p>
                                    <p> <b>3</b>
                                        个问题, <b>1</b>
                                        人关注
                                    </p>
                                </dd>
                            </dl>
                            <dl>
                                <dt class="pull-left aw-border-radius-5">
                                    <a href="topic.html">
                                        <img src="<{PUBLIC_HOME}>common/topic-mid-img.png" alt=""></a>
                                </dt>
                                <dd class="pull-left">
                                    <p class="clearfix">
										<span class="topic-tag">
											<a data-id="3" class="text" href="topic.html">引力波</a>
										</span>
                                    </p>
                                    <p>
                                        <b>1</b>
                                        个问题,
                                        <b>1</b>
                                        人关注
                                    </p>
                                </dd>
                            </dl>
                            <dl>
                                <dt class="pull-left aw-border-radius-5">
                                    <a href="topic.html">
                                        <img src="<{PUBLIC_HOME}>common/topic-mid-img.png" alt=""></a>
                                </dt>
                                <dd class="pull-left">
                                    <p class="clearfix">
										<span class="topic-tag">
											<a data-id="4" class="text" href="topic.html">引力</a>
										</span>
                                    </p>
                                    <p>
                                        <b>1</b>
                                        个问题,
                                        <b>1</b>
                                        人关注
                                    </p>
                                </dd>
                            </dl>
                        </div>
                    </div>
                    <div class="aw-mod aw-text-align-justify">
                        <div class="mod-head">
                            <a class="pull-right" href="?/people/">更多 &gt;</a>
                            <h3>热门用户</h3>
                        </div>
                        <div class="mod-body">
                            <{foreach $hot_users as $k=>$v}>
                            <dl>
                                <dt class="pull-left aw-border-radius-5">
                                    <a href="people.html">
                                        <img src="<{PUBLIC_HOME}>common/avatar-mid-img.png" alt=""></a>
                                </dt>
                                <dd class="pull-left">
                                    <a class="aw-user-name" data-id="2" href="people.html"><{$v.username}></a>
                                    <p class="signature"></p>
                                    <p>
                                        <b><{$v.num}></b>
                                        个问题,
                                        <b>0</b>
                                        次赞同
                                    </p>
                                </dd>
                            </dl>
                            <{/foreach}>
                        </div>
                    </div>
                </div>
                <!-- end 侧边栏 -->
            </div>
        </div>
    </div>
</div>
<{/block}>